package com.bookcloud.java21.chapter3.综合练习_打印九九乘法表39;

/** 综合练习_打印九九乘法表39 */
public class Lesson39 {
  public static void main(String[] args) {
    for (int i = 1; i <= 9; i++) {
      // 控制列数
      for (int j = 1; j <= i; j++) {
        System.out.print(i + "*" + j + "=" + (i * j) + "\t");
      }
      System.out.println();
    }
    System.out.println(" =====打印九九乘法表结束=====");
    for (int i = 9; i >= 1; i--) {
      // 控制列数
      for (int j = 1; j <= i; j++) {
        System.out.print(i + "*" + j + "=" + (i * j) + "\t");
      }
      System.out.println();
    }
  }
}
